import React from "react";
import {LdhFieldSet} from "@biz/PageCompnents";
import {LdhFormItem, LdhInput, LdhInputNumber, LdhMapSelect, LdhObjListSelect} from "@biz/Components";
import BaseDetailPage from "@biz/BaseDetailPage";
import {createAction} from "../Action";
import Config from "../config";
import Store from "../Store";

const prefix = "user-account-detail";
export default class userAccountDetail extends BaseDetailPage {

    constructor(props) {
        super(props);
        this.action = createAction();
        this.config = Config(this.action);
        this.store = new Store(props, this.config, this.action);
        this.className = prefix;
    }



    renderDetail(isDetail) {
        let {loading, menus = []} = this.state;
        return <LdhFieldSet title="基本信息" btn={!isDetail} loading={loading}>


            <LdhFormItem label="手机号" name="phone" required isDetail={isDetail}>
                <LdhInput maxLength={60} showCount/>
            </LdhFormItem>
            <LdhFormItem label="用户名" name="username" required isDetail={isDetail}>
                <LdhInput maxLength={60} showCount/>
            </LdhFormItem>
            <LdhFormItem label="可用" name="enabled" required isDetail={isDetail}>
                <LdhInput maxLength={60} showCount/>
            </LdhFormItem>
            <LdhFormItem label="余额" name="balance" required isDetail={isDetail}>
                <LdhInput maxLength={60} showCount/>
            </LdhFormItem>
            


        </LdhFieldSet>

    }
}